<div data-page="Subject_tiku" class="page my_subject lesson_detail" >
 <input type="hidden" id="knowsid" value="<{$knowsid}>" />
 <script>
 var video_info=<{:json_encode($knowsData['video_info'])}>
 </script>
 <div class="page-content" >
				<div class="J_Box  col-group ">
				 <if condition="$knowsData['questions_content']">
						<div class="group-tip active " id="btnContent" >
							 
							<a href="#this" onclick="zoom_in()" class="glyphicon glyphicon-zoom-in"></a>
							<{$knowsData.questions_content}>
							 
						</div>
						<div class="group-tip " id="btnRich">
						<a  href="#this" onclick="zoom_in()"  class="glyphicon glyphicon-zoom-in"></a>
							<ul class="nav nav-pills" role="tablist">
							<volist key="q1" name="knowsData['questions_analysis_array']" id="vo">
							 <li role="presentation" <if condition="$q1 eq 1">class="active"</if>><a href="#analysis_<{$q1}>" role="tab" data-toggle="tab" ><{$vo.title}></a></li>
							
							 </volist>
							 <if condition="$knowsData['attachment_array']['answer']">
							 <li ><a href="#tab9" data-toggle="tab">参考文件</a></li>
							 </if>
							</ul>
							 

							<!-- Tab panes -->
							<div class="tab-content">
							<volist key="q2" name="knowsData['questions_analysis_array']" id="vo">
							  <div role="tabpanel" class="tab-pane mgt20  <if condition="$q2 eq 1">active</if>" id="analysis_<{$q2}>">
							  <volist name="vo['step']" key="kk" id="vo1">
							  	<div class="richtipPanel"><div class="list-icon pull-left"><{$kk}></div><div class="mgl20"><{$vo1}></div></div>
							  	</volist>
							  </div>
							 </volist>
							 <div role="tabpanel" class="tab-pane mgt20" id="tab9">
							 	<div class="alert text"><a href="<{$knowsData['attachment_array']['answer']['url']}>" target="_blank">点此下载参考答案文件</a>，这个是满分文件，同学们可以用来对比自己的文件。</div>
							 </div> 
							</div>

						</div>
						<div class="group-tip" id="videoWrapper" style="overflow:hidden;padding: 0px; min-height:220px;width:100%; "></div>
				<else/>
					<div class="group-tip" id="videoWrapper" style=" display:block; padding: 0px; overflow:hidden; min-height:220px;width:100%;"></div>
				 </if>		
						
				</div>
				<div  class="action_box  K_Box">
					<div id="ueditorDrager" class="editor-drag-wrap">
						<div class="editor-drager" unselectable="on"> <span></span> </div>
					</div>
					<ul class="nav nav-tabs text swiperTap" id="myTab" style="padding-left:10px;">
						 <if condition="$knowsData['questions_content']">
						<li class="active"><a href="#detail_content" class="text-center" data-toggle="tab">做题</a></li>
						</if>
						<li <if condition="!$knowsData['questions_content']">class="active"</if>><a href="#detail_notes" class="text-center" data-toggle="tab">笔记</a></li>
						<li class=""><a href="#post_ask" class="text-center" data-toggle="tab">提问</a></li>
						<li class=""><a href="#questions" class="text-center" data-toggle="tab">练习</a></li>
					</ul>
					<div class="tab-content swiperContent" style="padding:10px;">
					<div class="tab-pane <if condition="$knowsData['questions_content']">active</if> tabPane" id="detail_content">
<div class="alert" style="padding:8px;">
            <p>请先下载试题到你的电脑，解压后打开文档完成你的试题</p>
          </div>
          <a href="<{$knowsData['attachment_array']['attachment']['url']}>" class="btn btn-warning btn-large btn-block  mgt20">下载试题</a>
					</div>
						<div class="tab-pane <if condition="!$knowsData['questions_content']">active</if> tabPane" id="detail_notes">
							 <textarea style="width:100%; height:340px" data-type='kindeditor' id="contentNote"><{$notes}></textarea>
							<button id="btnSaveLessonNote" onclick="save_notes()" class="btn mgt20 btn-large btn-block btn-success" data-loading-text="保存中…" >保存</button>
						</div>
						<div class="tab-pane tabPane" id="post_ask">
						<{:Widget('BoxSns/Topic/topicList',array('type'=>'eduAsk','where'=>array('pid3'=>$knowsid),'form'=>array('pid'=>$subjectid,'pid2'=>$knowsData['knowssectionid'],'pid3'=>$knowsData['knowsid'])))}>	
						</div>
						
						<div class="tab-pane tabPane" id="questions">
							 <{:Widget('BoxEdu/Questions/subject_exercise',array('examid'=>$examid))}>
						</div>
					</div>
					<div id="ueditorMask" class="hide"></div>
					<div id="okSaveLessonNote" class="text hide">保存成功</div>
				</div>
		 
	</div>
	<script>
	function zoom_in(){
		var h= $(window).height();
		if($(".col-group").hasClass('col-group-big')){
			$(".col-group").removeClass("col-group-big");
			$(".navbar-fixed-top").prev().show();
			$(".navbar-fixed-top").show();
			$(".page-content").removeClass("overflowHiden");
			$(".col-group").height(h-50);

		}else{
			$(".col-group").addClass("col-group-big");
			$(".navbar-fixed-top").prev().hide();
			$(".navbar-fixed-top").hide();
			$(".page-content").addClass("overflowHiden");
			$(".col-group").height(h);
		}

	}
$("#videoWrapper").on("videoPlay",function(event){
			 // alert("videoPlay");	
				 <if condition="$knowHistory['play_time']">
				  CKobject.getObjectById('ckplayer_videoWrapper').videoSeek(<{$knowHistory['play_time']}>);
					</if>	
			})	
			$("#videoWrapper").on("videoPause",function(event){
			//  alert('videoPause');	
			})	
			//监听时间
			var timeArr={};
			$("#videoWrapper").on("videoTime",function(event){
				   // console.log(video_info);
								var play_id = "ckplayer_videoWrapper"; 
								var data=CKobject.getObjectById(play_id).getStatus();
								var time=parseInt(data['time']);
								if(time%2==0 && typeof(timeArr[time])=="undefined"){
									 $.post("/Subject/user_play_video",{type:1,time:time,knowsid:"<{$knowsid}>"})
								}
									timeArr[time]=time;
			})
			
			$("#videoWrapper").on("videoStop",function(event){
								var play_id = "ckplayer_videoWrapper"; 
								$.post("/Subject/user_play_video",{type:2,knowsid:"<{$knowsid}>"}) 
			})
			 	
			
	</script>
</div>
 
 
